package com.ruoyi.yf.domain.mobile;

/*
 *
 * Created by XiaoYi on 2021/1/28 4:59 下午
 * @version 1.0
 * 202d6db2-b687-4061-9b19-98fd1c7136b9
 */
public class ResponseData {

    private String resultCode;
    private String msg;

    // 构造
    public ResponseData() {
    }
    public ResponseData(String resultCode, String msg) {
        this.resultCode = resultCode;
        this.msg = msg;
    }

    // 成功
    public static ResponseData successY(String msg){
        return new ResponseData("Y",msg);
    }

    // 失败
    public static ResponseData failureN(String msg){
        return new ResponseData("N",msg);
    }


    public String getResultCode() {
        return resultCode;
    }

    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}
